<template>
    <div class="search-bar">
        <div class="search-input">
            <input type="text" placeholder="想去哪里？">
            <button class="search-button">
                <i class="fas fa-search"></i> 搜索
            </button>
        </div>
        <div class="search-filters">
            <select>
                <option>旅行类型</option>
                <option>自由行</option>
                <option>跟团游</option>
                <option>自驾游</option>
            </select>
            <select>
                <option>预算范围</option>
                <option>¥0-¥3000</option>
                <option>¥3000-¥6000</option>
                <option>¥6000+</option>
            </select>
            <select>
                <option>旅行时间</option>
                <option>1-3天</option>
                <option>4-7天</option>
                <option>7天以上</option>
            </select>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'SearchBar'
    }
</script>

<style scoped>
    .search-bar {
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }

    .search-input {
        display: flex;
        margin-bottom: 1rem;
    }

    .search-input input {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 4px 0 0 4px;
        font-size: 1rem;
    }

    .search-button {
        padding: 0 24px;
        background: #0984e3;
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-weight: 500;
    }

    .search-filters {
        display: flex;
        justify-content: space-between;
    }

    .search-filters select {
        flex: 1;
        margin: 0 5px;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
</style>